<%@page import="com.lynn.salary.entity.User_"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	String inputValue = "";
	ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
	User_ editUser = (User_)vs.findValue("user");
	String flag = vs.findString("flag");
%>
<div class="pageContent">
	<form method="post" action="<%=basePath %>user!newRecommend.do?flag=edit" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
	<div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>必填信息</span></a></li>
					<li><a href="javascript:;"><span>选填信息</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent" style="height:330px;">
			<div>
				<div class="pageFormContent" layoutH="90">
					<p>
						<label>姓名：</label>
						<input name="user.name" class="required" type="text" size="10" style="width: 180px;" value="<s:property value='user.name' />" alt="请输入姓名"/ >
					</p>
					<p>
						<label>性别：</label>
						<%   
		
						 	String man = editUser.getGender().equals("男")?"checked='checked'":"";
							String woman = editUser.getGender().equals("女")?"checked='checked'":"";
						%>
					<input type="radio" class="required" name="user.gender" value="男" <%=man%>>男
		            <input type="radio" class="required" name="user.gender" value="女" <%=woman%>>女
					</p>
					<p>
						<label>出生日期：</label>
						<input type="text" name="user.birthday" class="date required" size="30" style="width: 180px;" value="<s:property value='user.birthday' />"/><a class="inputDateButton" href="javascript:;">选择</a>
					</p>
						<p>
						<label>手机：</label>
						<input type="text" name="user.mobilePhone" class="phone required" size="14" style="width: 180px;" value="<s:property value='user.mobilePhone' />" alt="移动/联通/电信手机号"/>
					</p>
					<p>
						<label>QQ：</label>
						<input type="text" class="required" name="user.qq" size="14" style="width: 180px;" value="<s:property value='user.qq' />"/>
					
					</p>
				</div>
			</div>
			
			<div>
				<div class="pageFormContent" layoutH="90">
				<p>
					<label>单位：</label>
					<input type="text" name="user.company" size="50" style="width: 180px;" value="<s:property value='user.company' />" alt="工作单位/公司名"/>
				</p>
				<p>
					<label>电话：</label>
					<input type="text" name="user.phone" size="14" style="width: 180px;" value="<s:property value='user.phone' />" alt="工作电话/家庭电话"/>
				</p>
				<p>
					<label>邮箱：</label>
					<input type="text" name="user.email" class="email" size="50"  style="width: 180px;" value="<s:property value='user.email' />" alt="常用邮箱地址"/>
				</p>
				<p>
					<label>地址：</label>
					<input type="text" name="user.address" class="text" size="150" style="width: 180px;" value="<s:property value='user.address' />" alt="联系地址"/>
				</p>
				</div>
			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
	
			
		</div>
	
	
	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>	
	</form>
</div>

